package com.dunshan.deeptest.service;

import com.dunshan.deeptest.pojo.Result;
import com.dunshan.deeptest.pojo.ScriptParam;

public interface ScriptService {
    /**
     * 解析url
     *
     * @param url
     * @return
     */
    Result printUrlInfo(String url);

    /**
     * 执行测试用例
     *
     * @param scriptParam
     * @return
     */
    Result testRun(ScriptParam scriptParam);

    /**
     * 保存脚本
     *
     * @param scriptParam
     * @return
     */
    Result save(ScriptParam scriptParam);

    /**
     * 更新
     *
     * @param scriptParam
     * @return
     */
    Result update(ScriptParam scriptParam);

    /**
     * 删除
     *
     * @param id
     * @return
     */
    Result delete(Integer id);
}
